Skip to content

fix(isc): a duplicate ruleset declaration is a load error (G7, py canon) - #854

Merged
ronaldtse merged 1 commit into
mainfrom
fix/g7-duplicate-rulesets
Nov 14, 2026
Merged

ronaldtse merged 1 commit into
mainfrom
fix/g7-duplicate-rulesets

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

WO18 audit gap G7 - the ruby half (rs landed in interscript-rs#19, py rejects at parse, ts in interscript-ts#138). Ruby silently kept the FIRST ruleset a definition, and with in-block use the expansion could pull content from BOTH definitions (audit probe tst-rscycle). The document builder now raises Interscript::MapLogicError, 'ruleset "a" declared more than once in <filename>'.

TDD: wf1 semantics spec red (loaded and kept first) then green; rake 431 examples / 0 failures / 11 pending; standardrb clean.

ruby silently kept the FIRST definition; with in-block use the
executed body was declaration-order dependent (audit probe tst-rscycle
could pull content from BOTH definitions). The document builder now
raises Interscript::MapLogicError "ruleset <name> declared more than
once in <filename>", matching rs #19's builder check, ts #138's
expandDocument check, and py's parse rejection.

TDD: wf1 semantics spec red (loaded, kept first) -> green; rake
431/0/11.
@ronaldtse
ronaldtse merged commit 65dca3c into main Nov 14, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant